package com.example.desinger.controller;

import com.example.desinger.common.R;
import com.example.desinger.entity.Admins;
import com.example.desinger.service.AdminsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

    @RequestMapping("/admin")
@RestController
public class AdminsController {
    @Autowired
    private AdminsService adminsService;
    @PostMapping("/login")
    public R<Admins> LongByAAndP(@RequestBody Admins admins){
       return adminsService.longByAAndP(admins);
    }
}
